from django.urls import path
from django.contrib.auth import views as auth_views
from . import views

print("urls.py")

app_name = 'authorities'
# urlpatterns = [
#     path('', views.index, name='index'),
#     path('<int:question_id>/', views.detail, name='detail'),
#     path('<int:question_id>/results/', views.results, name='results'),
#     path('<int:question_id>/vote/', views.vote, name='vote'),
# ]
urlpatterns = [
    # path('', views.IndexView.as_view(), name='index'),
    # path('<int:pk>/', views.DetailView.as_view(), name='detail'),
    # path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
    # path('<int:question_id>/vote/', views.vote, name='vote'),
    # path('accounts/profile/', views.IndexView.as_view(), name='accounts-index'),
    # path('login/', auth_views.LoginView.as_view(
    #     template_name='authorities/login.html',
    #     # redirect_field_name='authorities:index',
    # ), name = 'login'),
    path('login/', views.verify_login, name='login'),
    path('welcome/', views.welcome_you, name='welcome'),
    path('logout/', views.verify_logout, name='logout'),
    path('register/', views.register, name='regsiter'),
    path('movielist/', views.get_movie_list, name='get_movie_list'),
    path('favor/', views.add_favor, name='add favor'),
    path('unfavor/', views.add_hate, name='add hate'),
    path('movieinfo/', views.get_movie, name='get single movie'),
    path('searchlist/', views.get_search_result, name='search'),
    path('bkgpicture/', views.get_cover, name='get_cover'),
    path('agerecommend/',views.age_recommend, name = 'age_recommend'),
    path('likelist/', views.get_like_list, name = 'get like status'),
    # path('welcome/', views.welcome, name='welcome'),
]
